package chixing.day10.innerclass;

import chixing.day09.interfacelean.Cpu;

public class OuterTest {
    public static void main(String[] args) throws ClassNotFoundException {

//        Class.forName("chixing.day10.innerclass.Outer");
//        Class.forName("chixing.day10.innerclass.Outer$A");
//        Class.forName("chixing.day10.innerclass.Outer$B");

//        Outer.B outer1 = new Outer.B();//static内部类用类名调用
//        Outer outer = new Outer();
//        Outer.A  a = outer.new A();//成员内部类要用对象调用

            new Outer.B();//static内部类的调用

            Outer outer = new Outer();
            outer.new A();//成员内部类的调用，成员内部类要用对象来调用

//        Outer outer = new Outer();
//
//        outer.fun2(new Cpu() {
//            @Override
//            public void cpuRunning() {
//
//            }
//
//            @Override
//            public void cpuClosing() {
//
//            }
//        });

    }


}
